Handle widget being NULL. Pointed out by Wouter Bolsterlee.
authorMatthias Clasen <matthiasc@src.gnome.org>
Sat, 28 Feb 2009 00:52:59 +0000 (00:52 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sat, 28 Feb 2009 00:52:59 +0000 (00:52 +0000)
        * gtk/gtkpaned.c (get_child_panes): Handle widget being NULL.
        Pointed out by Wouter Bolsterlee.

svn path=/trunk/; revision=22419

ChangeLog
gtk/gtkpaned.c

index 710f7db131a42ef5c26a25a5dd93ca35c29c4c59..fbcc030377c5bbc4d25f0286cc8f3abdf5df8fc3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-02-27  Matthias Clasen  <mclasen@redhat.com>
+
+       Bug 572996 – crash in Home Folder: Trying to open the sidebar
+
+       * gtk/gtkpaned.c (get_child_panes): Handle widget being NULL.
+       Pointed out by Wouter Bolsterlee.
+
 2009-02-27  Matthias Clasen  <mclasen@redhat.com>
 
        Bug 572972 – GtkRecentChooserDefault: memory leak in
index ba4282103ff2a791b2361a3526fc569547d30d00..64b04299741640954fcf54a4b289c805e8456f2a 100644 (file)
@@ -1890,7 +1890,7 @@ static void
 get_child_panes (GtkWidget  *widget,
                 GList     **panes)
 {
-  if (!GTK_WIDGET_REALIZED (widget))
+  if (!widget || !GTK_WIDGET_REALIZED (widget))
     return;
 
   if (GTK_IS_PANED (widget))